package com.zhangye.test.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangye.test.mapper.SearchLogMapper;
import com.zhangye.test.model.SearchLog;

/**
 * 搜索记录
 * 作者： 张叶
 * 创建时间：2018年6月25日  上午10:22:18
 */
@Service
public class SearchLogService {

	@Autowired
	private SearchLogMapper searchLogMapper;
	
	
	public List<SearchLog> selectByWhere(String where){
		List<SearchLog> list = searchLogMapper.selectByWhere(where);
		return list;
	}
	
	
	public int insert(SearchLog sl){
		int i = searchLogMapper.insert(sl);
		return i;
	}
	
	
}
